package com.liugege.make.factory.factorymethod.pizzastore.pizza;

public abstract class Pizza {
    protected String name;

    public abstract void prepare();

    public  void bake(){
        System.out.println(name + "is baking...");
    }
    public  void cut(){
        System.out.println(name + "is cutting...");
    }
    public  void box(){
        System.out.println(name + "is boxing...");
    }

    public void setName(String name) {
        this.name = name;
    }
}
